<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
	<link rel="stylesheet" type="text/css" href="<%=basePath %>admin/test/css/easyui.css">
	<link rel="stylesheet" type="text/css" href="<%=basePath %>admin/test/css/icon.css">
	<script type="text/javascript" src="<%=basePath %>admin/test/js/jquery-1.3.2.min.js"></script>
	<script type="text/javascript" src="<%=basePath %>admin/test/js/jquery.easyui.min.js"></script>
	<!-- 额外配置文件 -->
	<script type="text/javascript" src="<%=basePath %>admin/test/js/jquery-1.3.2.min.js"></script>
	<script type="text/javascript" src="<%=basePath %>admin/js/jquery.easyui.min.js"></script>
	<script type="text/javascript" src="<%=basePath %>admin/js/easyui-lang-zh_CN.js"></script>
	
		<link rel="stylesheet" type="text/css" href="<%=basePath %>admin/js/jquery-1.4.4.min.js">
		<script type="text/javascript" src="<%=basePath %>admin/js/jquery.datepick.js"></script>  
    <link type="text/css" href="<%=basePath %>admin/test/css/flora.datepick.css" rel="stylesheet">
<script type="text/javascript" src="<%=basePath %>admin/js/jquery.datepick-zh-CN.js"></script>  
	
	<!-- 额外配置文件 -->
	
	<style>
		input, textarea{
			border:1px solid #ccc;
			margin-bottom:5px;
		}
	</style>
	<script>
	function detailState()
	{
	 window.location.href="<%=basePath%>admin/wst/detailState.jsp";
	}
	</script>
	<script type="text/javascript">
		$(function(){
			var dlg = $('#dlg1').dialog({
				iconCls: 'icon-save',
				width:400,
				modal:true,
				buttons:{
					'登录':function()
					{
					
					
						
					},
					'取消':function(){
						$('#dlg1').dialog({closed:true});
					}
				}
			});
		});
       
		function open1(){
			$('#dlg1').dialog({
				closed:false,
				showType:null//'show'
			});
		}
		function close1(){
			$('#dlg1').dialog({
				closed:true
			});
		}
		function denglu()
		{
		
		 
		  var card=document.getElementById("card").value;
		  
		  
		    if(card=='')
		   {
		     $.messager.alert('提醒','请输入身份证','info');
		     return;
		   }
		  	$.ajax({
				   type: 'post',
				   url: "checkIdCarduserAction",
				   data: "card="+card,
				   success: function(data)
				   {
				     if(data=='ok')
				     {
						detailState();
					 }
					if(data=='error')
					{
						document.getElementById("info").innerHTML="身份证不存在";
						
						//$.messager.alert('提醒','身份证不存在','info');
					}
				
				  }
			});
		}
		
	</script>
</head>
<body>
	<a href="#" onclick="open1();">患者就诊确认平台</a>
	<div id="dlg1"  style="width:320px;" title="身份证验证">
	<form id="login" name="login" method="post" action="">
		<div style="padding:20px;" title="身份证验证">
			<div style="padding-bottom: 50px;">
			 请输入身份证:<br/><br/><input type="text" name="card" id="card" style="width:150px;"/><label id="info" style="color: red;size: 12px;height:20px; center"></label>
			 </div>
			
	       <div> <a  href="javascript:denglu();"   class="l-btn" icon="icon-ok">提交</a>
	        <a href="javascript:close1();" class="l-btn" icon="icon-cancel">取消</a>
	        </div>
		</div>
		</form>
	</div>
</body>
</html>